//
//  DeviceListCell.h
//  OST
//
//  Created by mac on 13-7-6.
//  Copyright (c) 2013年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PersistableInfo.h"
@class MeterListCell;

@protocol MeterListCellDelegate <NSObject>
-(void)changeMeterInfo:(NSDictionary *)data cell:(MeterListCell*)cell;

@end

@interface MeterListCell : UITableViewCell
{
    NSString *ipUrl;
}
@property (nonatomic,assign) float power;



@property (nonatomic,assign) IBOutlet UILabel *labelName;
@property (nonatomic,assign) IBOutlet UIImageView *icon;
@property (nonatomic,assign) IBOutlet UILabel *labelMeter;
@property (nonatomic,retain) NSDictionary *data;
@property (nonatomic,assign) id<MeterListCellDelegate>delegate;

-(void)initView;
-(void)setStatusData:(NSDictionary *)status;
-(void)setMCellData:(NSDictionary *)theData;

+(PersistableInfo *)getMeterInfo:(NSDictionary *)mdata;
-(IBAction)changeMInfo:(id)sender;
-(void)updateIcon;
@end
